import java.util.Scanner;

public class demo {
    public static void main(String[] args) {
        System.out.println("请输入想要相加的数");
        Scanner scan=new Scanner(System.in);
        double a=scan.nextDouble();
        double b=scan.nextDouble();
        //double  c=scan.nextByte();
        System.out.println("他们的和为："+add(a,b));
    }
    public static int add(int x,int y){
        return x+y;
    }
    public static int add(int x,int y,int z){
        return x+y+z;
    }
    public static double add(double a,double b){
        return a+b;
    }
}
